<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery-3.6.0.min.js"></script>
    <style>
        img {
            position: relative;
        }
    </style>
</head>

<body>
    <img src="images/butiful.jpg" alt="">
    <script>
        $(function() {
            $(document).on("mousemove", function(e) {
                $("img").offset({
                    top: e.pageY - $("img").outerHeight() / 2,
                    left: e.pageX - $("img").outerWidth() / 2
                })
            })
        })
    </script>
</body>

</html>